<?php

$arrContextOptions=array(
    "ssl"=>array(
        "verify_peer"=>false,
        "verify_peer_name"=>false,
    ),
);  

$data = file_get_contents("https://www.cnblogs.com/cate/php/", false, stream_context_create($arrContextOptions));


$preg = "/<h3><a class=\"titlelnk\" href=\"(.+?)\" target=\"_blank\">(.+?)<\/a><\/h3/";

$c = preg_match_all($preg,$data,$out);

var_dump($c);
var_dump($out);

// $str = json_encode($out[1],JSON_UNESCAPED_UNICODE);

// file_put_contents('./job.txt', $str);